<template>
  <div class="page-grey">
    <div class="top">
      <span @click="$router.back()">
        <svg-icon icon-class="back" class="icon" />
      </span>
      <span class="center">订单</span>
    </div>
    <div class="row address">
      <p class="fw600">收货人：小可爱</p>
      <p>
        <svg-icon icon-class="position" class="row-icon" />
        收货地址：可爱星球
      </p>
      <span class="right">
        <svg-icon icon-class="next" class="row-icon" />
      </span>
    </div>
    <div class="row">
      <p>
        <svg-icon icon-class="crown" class="row-icon" />
        小可爱的店
      </p>
      <div class="flex-box">
        <div class="img">
          <img src="../../assets/images/timg.png" />
        </div>
        <div>
          <div class="title">小可爱的衣服我也不知道 要写啥</div>
          <div class="tag">
            <span>盛典活动</span>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <p class="red">可用余额(元):100000.00</p>
      <p>订单总额(元):10000.00</p>
      <p>佣金(元):10000.00</p>
      <p>返还(元):10000.00</p>
    </div>
    <div class="big-btn">提交订单</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      id: null
    };
  },
  created() {
    // 路由 传过来的 id
    this.id = this.$route.params.id;
  }
};
</script>

<style lang="scss" scoped>
.row {
  width: 80%;
  margin: 15px auto;
  padding: 15px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 2px 2px 4px #e7e7e7;
  background-color: #fff;
  position: relative;
  line-height: 1.5;
  &.address {
    line-height: 3;
  }
  p {
    padding-right: 30px;
    font-size: 110%;
    &.red {
      color: #eb7875;
      font-size: 120%;
      margin-bottom: 10px;
    }
    &.fw600 {
      font-weight: 600;
      font-size: 125%;
      color: #444;
    }
  }
  .right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  .row-icon {
    font-size: 20px;
  }
  .flex-box {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    .img {
      width: 34%;
      margin-right: 5%;
      img {
        width: 100%;
      }
    }
    .title {
      font-size: 120%;
      line-height: 1.5;
    }
    .tag {
      span {
        color: #fff;
        padding: 2px 4px;
        background-color: #eb7875;
        border-radius: 5px;
        font-size: 12px;
      }
    }
  }
}
.big-btn {
  margin-top: 50px;
}
</style>
